package org.example.exception;

import org.example.rvo.ResultVO;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class GlobalExceptionAdvice {
//catch
    @ExceptionHandler(value = BuinessException.class)
    public ResultVO exp01(BuinessException e){
        return ResultVO.failure("500",e.getMessage());
    }
}
